package cn.itcast.erp.entity;

import cn.itcast.erp.entity.utils.Base;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 盘盈盘亏实体类
 * @author 丛平
 */
public class Inventory extends Base implements Serializable {
	private Long uuid;//编号
	@NotNull(message = "请选择商品")
	private Long goodsuuid;//商品
	@NotNull(message = "请选择仓库")
	private Long storeuuid;//仓库
	@NotNull(message = "请输入数量")
	private Long num;//数量
	@NotBlank(message = "请选择类型")
	private String type;//类型
	private java.util.Date createtime;//登记日期
	private java.util.Date checktime;//审核日期
	private Long creater;//登记人
	private Long checker;//审核人
	private String state;//状态
	private String remark;//备注


	private java.util.Date createFrom;
	private java.util.Date createTo;
	private java.util.Date checkFrom;
	private java.util.Date checkTo;
	private String goodsName;
	private String storeName;
	private String createrName;
	private String checkerName;
	private Long numMin;
	private Long numMax;

	@Override
	public String toString() {
		return "Inventory{" +
				"uuid=" + uuid +
				", goodsuuid=" + goodsuuid +
				", storeuuid=" + storeuuid +
				", num=" + num +
				", type='" + type + '\'' +
				", createtime=" + createtime +
				", checktime=" + checktime +
				", creater=" + creater +
				", checker=" + checker +
				", state='" + state + '\'' +
				", remark='" + remark + '\'' +
				", createFrom=" + createFrom +
				", createTo=" + createTo +
				", checkFrom=" + checkFrom +
				", checkTo=" + checkTo +
				", goodsName='" + goodsName + '\'' +
				", storeName='" + storeName + '\'' +
				", createrName='" + createrName + '\'' +
				", checkerName='" + checkerName + '\'' +
				", numMin=" + numMin +
				", numMax=" + numMax +
				'}';
	}

	public Long getUuid() {
		return uuid;
	}

	public void setUuid(Long uuid) {
		this.uuid = uuid;
	}

	public Long getGoodsuuid() {
		return goodsuuid;
	}

	public void setGoodsuuid(Long goodsuuid) {
		this.goodsuuid = goodsuuid;
	}

	public Long getStoreuuid() {
		return storeuuid;
	}

	public void setStoreuuid(Long storeuuid) {
		this.storeuuid = storeuuid;
	}

	public Long getNum() {
		return num;
	}

	public void setNum(Long num) {
		this.num = num;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getChecktime() {
		return checktime;
	}

	public void setChecktime(Date checktime) {
		this.checktime = checktime;
	}

	public Long getCreater() {
		return creater;
	}

	public void setCreater(Long creater) {
		this.creater = creater;
	}

	public Long getChecker() {
		return checker;
	}

	public void setChecker(Long checker) {
		this.checker = checker;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateFrom() {
		return createFrom;
	}

	public void setCreateFrom(Date createFrom) {
		this.createFrom = createFrom;
	}

	public Date getCreateTo() {
		return createTo;
	}

	public void setCreateTo(Date createTo) {
		this.createTo = createTo;
	}

	public Date getCheckFrom() {
		return checkFrom;
	}

	public void setCheckFrom(Date checkFrom) {
		this.checkFrom = checkFrom;
	}

	public Date getCheckTo() {
		return checkTo;
	}

	public void setCheckTo(Date checkTo) {
		this.checkTo = checkTo;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}

	public String getCreaterName() {
		return createrName;
	}

	public void setCreaterName(String createrName) {
		this.createrName = createrName;
	}

	public String getCheckerName() {
		return checkerName;
	}

	public void setCheckerName(String checkerName) {
		this.checkerName = checkerName;
	}

	public Long getNumMin() {
		return numMin;
	}

	public void setNumMin(Long numMin) {
		this.numMin = numMin;
	}

	public Long getNumMax() {
		return numMax;
	}

	public void setNumMax(Long numMax) {
		this.numMax = numMax;
	}
}
